package com.oa.admin.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.joneying.common.web.response.Resp;
import com.oa.admin.dto.CompanyActivityApplyAddDTO;
import com.oa.admin.dto.CompanyActivityApplyListDTO;
import com.oa.admin.vo.CompanyActivityApplyDetailsVO;
import com.oa.admin.vo.CompanyActivityApplyListVO;
import com.oa.core.PageResult;
import com.oa.admin.entity.CompanyActivityApply;
import com.baomidou.mybatisplus.service.IService;
import com.oa.core.exception.BusinessException;
import com.oa.core.exception.DataIsEmptyException;

import java.util.List;

/**
 * <p>
 * 公司活动申请表 服务类
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface ICompanyActivityApplyService extends IService<CompanyActivityApply> {
    /**
     * 自定义分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult<CompanyActivityApply> findList(Integer pageNum, Integer pageSize);

    /**
    * 根据id查询
    */
    CompanyActivityApplyDetailsVO findCompanyActivityApplyById(String id);


    PageResult<CompanyActivityApplyListVO> findCompanyActivityApplyList(CompanyActivityApplyListDTO companyActivityApplyListDTO);

    Resp add(CompanyActivityApplyAddDTO companyActivityApplyAddDTO) throws BusinessException, DataIsEmptyException;
}
